package com.ruoyi.forum.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 时事-（用于给学校发布事件所用，可实时向学生展示当前学校所发送的事情。）对象 forum_current_event
 * 
 * @author ruoyi
 * @date 2024-02-09
 */
@ApiModel(value="ForumCurrentEvent对象", description="论坛-时事")
public class ForumCurrentEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 时事id */
    @ApiModelProperty(value = "时事id")
    private Long id;

    /** 学校ID */
    @ApiModelProperty(value = "学校ID")
    @Excel(name = "学校ID")
    private Long schoolId;

    /** 时事标题 */
    @ApiModelProperty(value = "时事标题")
    @Excel(name = "时事标题")
    private String title;

    /** 内容 */
    @ApiModelProperty(value = "内容")
    @Excel(name = "内容")
    private String content;

    /** 状态（0：未失效，1：已失效） */
    @ApiModelProperty(value = "状态（0：未失效，1：已失效）")
    @Excel(name = "状态", readConverterExp = "0=：未失效，1：已失效")
    private String state;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSchoolId(Long schoolId)
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId()
    {
        return schoolId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("state", getState())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
